package y2017.date0326am.强转对象;

public class Student extends Person {
    private String className;

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    @Override
    public String toString() {
        return "Student [className=" + className + ", getClassName()="
                + getClassName() + ", getSpecies()=" + getSpecies()
                + ", getSex()=" + getSex() + ", toString()=" + super.toString()
                + ", getName()=" + getName() + ", getYear()=" + getYear()
                + ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
                + "]";
    }
}
